package com.dxy.tank;

/**
 * @Author kiwi
 * @Date 2021/1/6 11:29
 * @Description TODO
 */
public class Main {
    public static void main(String[] args) throws InterruptedException {
        TankFrame t = new TankFrame();
        int initTankCount = PropertyMgr.getInt("initTankCount");
        for (int i = 0; i < initTankCount; i++) {
            t.tanks.add(new Tank(50 + i * 80, 200, Dir.DOWN, Group.BAD, t));
        }
        new Thread(()->new Audio("audio/war1.wav").loop()).start();
        while (true) {
            Thread.sleep(50);
            t.repaint();
        }
    }
}
